package com.ypbase.cloud.tags.api;

import com.alibaba.dubbo.rpc.BaseDubboException;
import com.alibaba.dubbo.rpc.BaseDubboServerException;
import com.cloud.framework.core.common.dto.PageResultDto;
import com.cloud.framework.core.exception.ApiException;
import com.ypbase.cloud.tags.api.dto.TagDto;

public interface ITagApi {
	

	/**
	 * 分页查询demo
	 * 
	 * @param pageNo
	 * @param pageSize
	 * @param companyCode
	 * @param companyName
	 * @return
	 * @throws ApiException
	 */
	public PageResultDto<TagDto> getTagPageList(TagDto tagDto,Long pageNo,Long pageSize) throws BaseDubboServerException,BaseDubboException;

	
	/**
	 * 添加tag
	 * @param tagDto
	 * @return
	 * @throws BaseDubboException,BaseDubboException
	 */
	public void addTag(TagDto tagDto) throws BaseDubboServerException,BaseDubboException;
	
	/**
	 * 编辑tag
	 * @param tagDto
	 * @return
	 * @throws BaseDubboServerException BaseDubboException
	 */
	public void updateTag(TagDto tagDto) throws BaseDubboServerException,BaseDubboException;
	
	/**
	 * 删除tag
	 * @param id
	 * @throws BaseDubboServerException BaseDubboException
	 */
	public void deleteTagById(Long id) throws BaseDubboServerException,BaseDubboException;

}
